#ifndef __HALALGGLOBUFF_H__
#define __HALALGGLOBUFF_H__
    
	#define MAX_RSA_CONTEXT_LEN     1024
	//#define MAX_RSA_CONTEXT_LEN     2048
	#define MAX_HASH_CONTEX_LEN     468   
	#define MAX_MAC_CONTEX_LEN      32
	#define MAX_KEY_LEN	            32
	#define MAX_IV_LEN	            16 
	     
    extern UINT32 *GetAlgDataBuff(void);
    extern UINT32 *GetAlgKeyBuff(void);
    extern UINT32 *GetAlgIVBuff(void);
    extern UINT32 *GetAlgHashContextBuff(void);
    extern UINT32 *GetAlgMacContextBuff(void);
    extern UINT32 *GetAlgRSADataBuff(void);
    extern UINT32 *GetAlgRSAContextBuff(void);
    
    typedef struct 
    {
        UINT32 gHalAlgRsaContextBuff[MAX_RSA_CONTEXT_LEN / 4];
        UINT32 gHalAlgGloHashContextBuff[MAX_HASH_CONTEX_LEN / 4];
       	UINT32 gHalAlgGloKeyBuff[MAX_KEY_LEN / 4];
        UINT32 gHalAlgGloIVBuff[MAX_IV_LEN / 4];
        UINT32 gHalAlgGloMacContextBuff[MAX_MAC_CONTEX_LEN / 4];
    }GLOBLE_BUFF;

#endif 	
